package router

import (
	"github.com/gin-gonic/gin"
	"seat-service/api"
)

type classroomAdminRouter struct {
}

func (c *classroomAdminRouter) classroomAdminRouterGroup(Router *gin.RouterGroup) *gin.RouterGroup {
	classroomAdminApi := api.ClassroomAdminApi{}
	classroomAdmin := Router.Group("classroomAdmin/")
	{
		classroomAdmin.POST("/query/classroom", classroomAdminApi.GetClassroomByConditions) //查询教室信息
		classroomAdmin.GET("/getClassroom/id", classroomAdminApi.GetClassroomById)          //根据id , 查询教室信息
		classroomAdmin.POST("/update/classroom", classroomAdminApi.UpdateClassroomById)     //根据id修改教室信息
		classroomAdmin.POST("/add/classroom", classroomAdminApi.AddClassroomData)           //增加教室信息
		classroomAdmin.POST("/delete/classroom", classroomAdminApi.DeleteClassroom)         //删除教室信息
		classroomAdmin.POST("/get/classroom", classroomAdminApi.ExportClassroomExcel)       //获取Excel教室模板
		classroomAdmin.POST("/upload/classroom", classroomAdminApi.MoreAddClassroom)        //Excel表数据导入
	}
	return classroomAdmin
}
